﻿namespace JESAI.Application.Abstractions.Dtos
{
    /// <summary>
    /// 分页返回基类
    /// </summary>
    public class BasePageOutput : BaseOutput
    {
        /// <summary>
        /// 当前页
        /// </summary>
        public int CurrentPage { set; get; }
        /// <summary>
        /// 总条数
        /// </summary>
        public long Total { set; get; }
    }
    /// <summary>
    /// 分页返回基类
    /// </summary>
    public class BasePageOutput<TData> : BaseOutput<TData>
    {

        public BasePageOutput()
        {

        }

        public BasePageOutput(TData data, int currentPage, long total)
        {
            Data = data;
            CurrentPage = currentPage;
            Total = total;
        }

        /// <summary>
        /// 当前页
        /// </summary>
        public int CurrentPage { set; get; }
        /// <summary>
        /// 总条数
        /// </summary>
        public long Total { set; get; }
    }
}
